#ifndef PROTOCOL_OPERATION_H_
#define PROTOCOL_OPERATION_H_

#include <cstdint>
class WriteBuffer;
class ProtocolOperation
{
public:
    enum OperationState
    {
        NEED_DATA,
        FINISH,
        BAD,
    };

public:
    virtual int ParserProtocol(const uint8_t * data, int data_length, int & use_length) = 0;
    virtual int NeedNotFinishProcess() { return 0;};
};

#endif
